package com.pronhub.luowowo.article.mapper;


import com.pronhub.luowowo.article.domain.StrategyContent;
import com.pronhub.luowowo.article.domain.StrategyDetail;
import com.pronhub.luowowo.article.query.StrategyDetailQuery;
import com.pronhub.luowowo.article.vo.StrategyPersistenceVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQuery qo);


    void increaseTheRelation(@Param("destId") Long id, @Param("tagId") Long id1);

    List<StrategyDetail> selectViewTop3(Long destId);

    void updateDataByRedisVO(StrategyPersistenceVO vo);
}